import service from '@/utils/crmRequest'

export default () => ({
  // 细心采编创建
  EDITORIAL_CREATE: function (data) {
    return service({
      url: '/api/reAgent/create',
      method: 'post',
      data
    })
  },

  EDITORIAL_LIST: function (data) {
    return service({
      url: '/api/reAgent/list',
      method: 'post',
      data
    })
  },

  EDITORIAL_WITH: function (id) {
    return service({
      url: `/api/reAgent/deal-done?id=${id}`,
      method: 'get',
    })
  },

  // 细心采模糊
  EDITORIAL_KEYWORDS: function (params) {
    return service({
      url: `/api/agent/list`,
      method: 'get',
      params
    })
  },

  EDITORIAL_DETAILS: function (id) {
    return service({
      url: `/api/reAgent/detail?id=${id}`,
      method: 'get',
    })
  },

  // 推荐商销客户--------------------------------------------

  //创建商销客户
  EDITORIAL_SHANGPIN_CREATE: function (data) {
    return service({
      url: `/api/seller/recommend/create`,
      method: 'post',
      data
    })
  },

  //商销客户列表
  EDITORIAL_SHANGPIN_LIST: function (data) {
    return service({
      url: `/api/seller/recommend/list`,
      method: 'post',
      data
    })
  },

  //商销客户详情
  EDITORIAL_SHANGPIN_DETAILS: function (id) {
    return service({
      url: `/api/seller/recommend/detail?id=${id}`,
      method: 'get',
    })
  },

  //商销客户处理
  EDITORIAL_SHANGPIN_WITH: function (id) {
    return service({
      url: `/api/seller/recommend/deal-done?id=${id}`,
      method: 'get',
    })
  },

  // 客户信息确认

  //企业代理确认列表
  EDITORIAL_CUSTOMER_ENTERPRISE_LIST: function (data) {
    return service({
      url: `/api/agent/confirm/list`,
      method: 'post',
      data
    })
  },

  //企业代理确认列表--确认
  EDITORIAL_CUSTOMER_ENTERPRISE_UPDATE: function (data) {
    return service({
      url: `/api/agent/confirm/update`,
      method: 'post',
      data
    })
  },


  //商销确认列表
  EDITORIAL_CUSTOMER_SHANGPIN_LIST: function (data) {
    return service({
      url: `/api/seller/confirm/list`,
      method: 'post',
      data
    })
  },

  //商销列表--确认
  EDITORIAL_CUSTOMER_SHANGPIN_UPDATE: function (data) {
    return service({
      url: `/api/seller/confirm/update`,
      method: 'post',
      data
    })
  },


    //终端确认列表
    EDITORIAL_CUSTOMER_TERMINAL_LIST: function (data) {
      return service({
        url: `/api/terminal/wait-confirm/list`,
        method: 'post',
        data
      })
    },
  
    //终端列表--确认
    EDITORIAL_CUSTOMER_TERMINAL_UPDATE: function (data) {
      return service({
        url: `/api/terminal/confirm/edit`,
        method: 'put',
        data
      })
    },





})
